import Vue from 'vue'
import Vuex from 'vuex'
// import api from '@/api';
import createLogger from 'vuex/dist/logger';

// 获取NODE环境变量：
//   npm run serve -> development
//   npm run build -> production 
const debug = process.env.NODE_ENV !== "production";
Vue.use(Vuex)

export default new Vuex.Store({
  state: {
  },
  mutations: {
  },
  actions: {
  },
  modules: {
  },
  plugins: debug ? [createLogger()] : []
})
